//makeObservable
import {makeAutoObservable} from 'mobx'

export default class TodoStore {
  constructor() {
    makeAutoObservable(this)
  }
  //需要共享的状态(变量，方法)
  msgArr = []
  changeMsg = val => {
    this.msgArr.push({id: Math.random(), val})
  }
}

